<!-- Screen Logs screen -->
<style type="text/css">
    #wraper
    {
        padding-top : 50px;
        }
</style>
<div id = "wraper">
@model IEnumerable<Vms.Web.Models.SCREEN_LOG>

@{
    ViewBag.Title = "Log Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink(" ", "Create", new { }, new { @class = "vms-icon-add", @title = "Create new" })<span>Create new </span>
</p>
<table class="table table-bordered table-striped">
    <tr>
        <th></th>
        <th>
            Time
        </th>
        <th>
            Connection
        </th>
        <th>
            On/Off
        </th>
        <th>
            Brightness Level
        </th>
        <th>
            Brightness Adjust Mode
        </th>
        <th>
            Current Time
        </th>
        <th>
            Current Program Id
        </th>
        <th>
            SCREEN
        </th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.Id }) |
            @Html.ActionLink("Details", "Details", new { id=item.Id }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.Id })
        </td>
        <td>
			@Html.DisplayTextFor(_ => item.Time).ToString()
        </td>
        <td>
			@item.Connection
        </td>
        <td>
			@item.OnOff
        </td>
        <td>
			@item.BrightnessLevel
        </td>
        <td>
			@item.BrightnessAdjustMode
        </td>
        <td>
			@item.CurrentTime
        </td>
        <td>
			@item.CurrentProgram_Id
        </td>
        <td>
			@(item.SCREEN == null ? "None" : item.SCREEN.Name)
        </td>
    </tr>
}

</table>


</div>